package chunithmlauncher;

import chunithmlauncher.view.LoadingView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.StackPane;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Arrays;
import java.util.Collection;

@SpringBootApplication
public class ChunithmLauncherApplication extends AbstractJavaFxApplicationSupport {

    @Override
    public Collection<Image> loadDefaultIcons() {
        Image img = new Image(this.getClass().getResourceAsStream("/images/favicon.png"));
        return Arrays.asList(img,img,img);
    }

    StackPane root = new StackPane();
    Scene scene = new Scene(root, 1200, 630);

        public static void main(String[] args) {
        launch(ChunithmLauncherApplication.class, MainView.class,new LoadingView(), args);
    }

}
